<?php
class indexMod extends commonMod {

	public function __construct()
    {
        parent::__construct();
    }

	public function index() {
		/*hook*/
        $this->plus_hook('index','index');
        /*hook end*/
        //MEDIA信息
        $this->common=model('pageinfo')->media();
		$this->display($this->config['TPL_INDEX']);
	}
	
	public function test(){
		$tables = array("content","expand_content_course");
		$return_file = "A.*,B.price,B.class_state";
		$join = array("A.aid = B.aid");
		$where = "A.status = 1 and A.cid = 1";
		$order = "A.aid desc";
		$limit = "0,5";
		$list = model("code_base")->join_table($tables,'',$return_file,$join,$where,$order,$limit);
	}
	
	public function register(){
		$this->display();
	}

	public function personal_center(){
		$this->user_info=$this->model->table ( 'uuser' )->where ( " uid = ".$_SESSION['uuser']['uid']  )->find ();
		$this->display("personal_center.html");
	}
}